﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GH.BLL;
using GH.Model;
using System.Data;


public partial class Labor_CompanyManage : GH.Web.BasePage.PageBase
{
    #region 画面初始化

    protected void Page_Load(object sender, EventArgs e)
    {
        System.Text.StringBuilder strWhere = new System.Text.StringBuilder();
        GH.BLL.Union union = new GH.BLL.Union();
        if(!this.GetRight(101))
        {
            btnEdit.Visible=false;
            strWhere.AppendFormat(" 工会单位信息.ID={0}", int.Parse(Session["Union"].ToString()));
        }
        else
        {
            strWhere.AppendFormat("");
        }
        DataTable dtSource = union.GetList(strWhere.ToString()).Tables[0];
        rptList.DataSource = dtSource;
        rptList.DataBind();
    }

    #endregion 画面初始化


  

    #region 画面事件

    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        //CheckRight(402);
        this.Response.Redirect("Labor_CompanyEdit.aspx?Action=Add");
    }

    #endregion
}
